<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>扫描入库</title>
    <script type=text/javascript th:src="@{'/js/jedate/jquery-1.7.2.js'}"></script>
</head>
<body>
没有找到微信号,请扫码登录入库：<br />
<img id="img" style="width: 200px;height: 200px;"/>
<br />
如您扫码成功，您可以点击 <input id="smqd" type="button" value="扫码启动" /> 进入扫码启动机器人。
<form method="post" target="_blank" id="forms" action="/wxh">
<input type="hidden" name="wxh" th:value="${wxh}" />
</form>
</body>
</html>
<script th:inline="javascript">
    var imgUrl = '/rukutemp/';
    imgUrl = imgUrl + [[${wxh}]];
    imgUrl = imgUrl + '/qr.png';
    $("#img").attr("src", imgUrl + "?d=" + new Date());
    setInterval(function () {
        $("#img").attr("src", imgUrl + "?d=" + new Date());
    }, 2000);
    $("#smqd").click(function () {
        $("#forms").submit();
    });
</script>